From: aude Date: Tue, 26 Nov 2013 11:32:37 +0000 (+0100) Subject: Create cachedEntry after processing change block X-Git-Tag: 1.31.0-rc.0~17890^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=322ecffcd1f5100ca53e8412364a55e156a9b617;p=lhc%2Fweb%2Fwiklou.git Create cachedEntry after processing change block Change-Id: I8b6b85104f15eb8325abace9b0a0653e16d748b9 --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 7208da3480..1727da02aa 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -57,11 +57,6 @@ class EnhancedChangesList extends ChangesList { public function recentChangesLine( &$baseRC, $watched = false ) { wfProfileIn( __METHOD__ ); - # Create a specialised object - $cacheEntry = RCCacheEntry::newFromParent( $baseRC ); - - $curIdEq = array( 'curid' => $cacheEntry->mAttribs['rc_cur_id'] ); - # If it's a new day, add the headline and flush the cache $date = $this->getLanguage()->userDate( $baseRC->mAttribs['rc_timestamp'], @@ -78,6 +73,11 @@ class EnhancedChangesList extends ChangesList { $this->lastdate = $date; } + # Create a specialised object + $cacheEntry = RCCacheEntry::newFromParent( $baseRC ); + + $curIdEq = array( 'curid' => $cacheEntry->mAttribs['rc_cur_id'] ); + # Should patrol-related stuff be shown? $cacheEntry->unpatrolled = $this->showAsUnpatrolled( $cacheEntry );